class Todo():
    current_todo_id = 1
    @staticmethod
    def get_id():
        num=Todo.current_todo_id
        Todo.current_todo_id += 1
        return num
    def __init__(self,title:str='',id:int=0,completed=False):
        self.id=id if id>0 else Todo.get_id()
        self.title = title
        self.completed=completed
